package py.com.fms.utilities;

import java.math.BigDecimal;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.faces.FacesMessages;


@Name("formAssist")
@Scope(ScopeType.SESSION)
public class FormAssistant {
	
	private Boolean validForm;
	
	public Boolean stringValidate(String arg, Boolean required){
		if(required.equals(true)){
			if(arg.isEmpty()){
				this.setValidForm(false);
				
			}else{
				this.setValidForm(true);
			}
		}
		return validForm;
	}

	public Boolean getValidForm() {
		return validForm;
	}

	public void setValidForm(Boolean validForm) {
		this.validForm = validForm;
	}
	
	
}
